package cn.stacey.day04.oop;

// 父类，基类 (super class, base class)
public class Employee {
	private String name;
	private int id;
	private double salary;
	
	public Employee() {
//		System.out.println("父类的构造器。。。");
	}
	
	public Employee(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return "Employee [name=" + name + ", id=" + id + "]";
	}

	public double getSalary() {
		return salary;
	}

	public void setSalary(double salary) {
//		System.out.println("父类的方法。。。");
		this.salary = salary;
	}

}
